package com.holly.common_view.bean;

import java.io.Serializable;

/**
 * 选项实体类
 *
 * 2017/3/9 <br/>
 *
 * @author Joey Huang QQ:273179370）
 */
public class CheckedEntity implements CheckedSpec,Cloneable, Serializable {
    protected String name;
    protected String id;
    protected boolean checked;

    @Override
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @Override
    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    @Override
    public boolean isChecked() {
        return checked;
    }

    @Override
    public void setChecked(boolean checked) {
        this.checked = checked;
    }

    @Override
    public Object clone(){
        try {
            return super.clone();
        } catch (CloneNotSupportedException e) {
           return  null;
        }
    }
}
